# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-pyshark
_pkgname=pyshark
pkgver=0.3.8
pkgrel=1
epoch=1
pkgdesc='python2 wrapper for tshark, allowing python2 packet parsing using wireshark dissectors.'
arch=('any')
url='https://pypi.org/project/pyshark/#files'
license=('MIT')
depends=('python2' 'python2-lxml' 'python2-logbook')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('dd4c9c28699e7175aba39461f16d7e41e76b5d5d1df2641b21496eaac4653516afbc2e23610a15d5a079e8377e71f9928481b170a47c5041e9fdc65ea81012db')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

